package com.colin.app.activity.coordinator;

import com.colin.app.app.AppActivity;
import com.colin.app.bean.DemoBean;
import com.colin.app.fragment.example.ExampleFragment;
import com.colin.library.base.BaseModel;
import com.colin.library.base.BasePresenter;
import com.colin.library.base.BaseView;

import java.util.List;

/**
 * Created by Colin on 2017/1/15.
 */

public interface CoordinatorTabLayoutContract {

    interface CoordinatorTabLayoutView extends BaseView {

        void initViewPager(List<ExampleFragment> fragmentList,List<Integer> fragmentIDList, List<String> fragmentTitleList);

        void initCoordinatorTabLayout(int[] imageHead, int[] colorArray);
    }

    interface CoordinatorTabLayoutPresenter extends BasePresenter {
        void initViewPager();

        void initCoordinatorTabLayout();

        void clickItem(DemoBean demoBean);

        void setLayoutType(int layoutType);
    }

    interface CoordinatorTabLayoutModel extends BaseModel {

        List<Integer> getFragmentIDList();

        List<String> getFragmentTitleList();

        List<ExampleFragment> getFragmentList(AppActivity mAppActivity);

        int getPosition();

        void setPosition(int position);

        int[] getImageHead();

        int[] getColorArray(AppActivity mAppActivity);

        int getLayoutType();

        void setLayoutType(int layoutType);
    }
}
